from tornado.web import Application

from config import mysql,settings

import peewee_async
database = peewee_async.MySQLDatabase(**mysql)
manager = peewee_async.Manager(database)

from router import handlers
def create_app():
    app = Application(handlers,**settings)
    app.listen(8001)
